Crack Java Interview 2019 | With Comprehensive Explanation and Code Samples by Joshi Dhawal

Crack Java Interview 2019 | With Comprehensive Explanation and Code Samples by Joshi Dhawal

Author:Joshi, Dhawal [Joshi, Dhawal]
Language: eng
Format: azw3
Published: 2019-01-06T16:00:00+00:00


29. What is Exception and what is the base class of it?

Exceptions are events that occur during the execution of programs that disrupt the normal flow of instructions (e.g. divide by zero, array access out of bound, etc.).

All exceptions and errors extend from a common java.lang.Throwable parent class. Only Throwable objects can be thrown and caught.

Other classes that have special meaning in Java are java.lang.Error (JVM Error), java.lang.Exception (System Error), and java.lang.RuntimeException (Programming Error).

The base class of Exception is Throwable.

Under Throwable are two subclasses: Exception and Error.

Under Exception is RuntimeException.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.